package com.boot.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Chunsheng.Zhang
 * @date 2021/1/8 10:45
 * @description : TODO
 */
@Data
public class User {

    //主键
    @ExcelIgnore //生成报表时忽略，不生成次字段
    private String id;
    @ExcelProperty(value = "用户名",index = 0) //定义表头名称和位置,0代表第一列
    private String username;
    @ExcelProperty(value = "密码",index = 1)
    private String password;
    @ExcelProperty(value = "头像",index = 2)
    private MultipartFile photo;
    @ExcelIgnore
    private MultipartFile[] excelFiles;




}
